package com.ruoyi.dl.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 提现充值记录对象 dl_withdraw
 *
 * @author wangshouli
 * @date 2021-01-04
 */
public class DlWithdraw extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Integer id;

    /**
     * 操作状态（0：处理中，1：失败，2：成功）
     */
    @Excel(name = "操作状态", readConverterExp = "0=：处理中，1：失败，2：成功")
    private Integer type;

    /**
     * 操作金额
     */
    @Excel(name = "操作金额")
    private BigDecimal moneyVal;

    /**
     * 用户
     */
    @Excel(name = "用户")
    private Integer userId;

    /**
     * 操作类型（0：充值，1：提现）
     */
    @Excel(name = "操作类型", readConverterExp = "0=：充值，1：提现")
    private Integer operate;

    /**
     * 用户
     */
    private DlUser dlUser;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setMoneyVal(BigDecimal moneyVal) {
        this.moneyVal = moneyVal;
    }

    public BigDecimal getMoneyVal() {
        return moneyVal;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setOperate(Integer operate) {
        this.operate = operate;
    }

    public Integer getOperate() {
        return operate;
    }

    public DlUser getDlUser() {
        return dlUser;
    }

    public DlWithdraw setDlUser(DlUser dlUser) {
        this.dlUser = dlUser;
        return this;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("moneyVal", getMoneyVal())
                .append("createTime", getCreateTime())
                .append("userId", getUserId())
                .append("remark", getRemark())
                .append("operate", getOperate())
                .append("user", getDlUser())
                .toString();
    }
}
